<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/19
  Time: 15:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改汽车</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body background="resources/images/mkl.jpg">
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>修改汽车</small>
                </h1>
            </div>
        </div>
    </div>
    <form action="${pageContext.request.contextPath}/updateCar" method="post">
        <input type="hidden" name="id" value="${car.id}">
        <div class="form-group">
            <label>汽车名称</label>
            <input type="text" name="name" value="${car.name}" class="form-control" required>
        </div>
        <div class="form-group">
            <label>汽车价格</label>
            <input type="text" name="price" value="${car.price}" class="form-control" required>
        </div>
        <div class="form-group">
            <label>汽车数量</label>
            <input type="text" name="count" value="${car.count}" class="form-control" required>
        </div>
        <div class="form-group">
            <label>汽车描述</label>
            <input type="text" name="detail" value="${car.detail}" class="form-control" required>
        </div>
        <div class="form-group">
            <input type="submit" class="form-control" value="修改" style="background: dodgerblue">
        </div>
    </form>
</div>
</body>
</html>

